<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <link rel="stylesheet" href="styles/style.css">
        <link rel="stylesheet" href="styles/theme/atom-one-dark.css">
        <title>例子14-JS进阶（三）</title>
    </head>
    <body>
        <pre>
            <code>
                    // 例子14

                    var pattern1 = /[abc]/; // 匹配a或b或c
                    var pattern2 = /[^abc]/; // 匹配a、b和c之外的所有字符
                    var pattern3 = /[a-zA-Z0-9]/; // 匹配任何字母和数字
            </code>
        </pre>
        <script src="scripts/libs/highlight.pack.js"></script>
        <script src="scripts/14.js"></script>
        <script>
            hljs.initHighlightingOnLoad();
        </script>
    </body>
</html>